/* 
 * File:   RealConverter.h
 * Author: Gab'z
 *
 * Created on 4 juin 2012, 09:40
 */

#ifndef REALCONVERTER_H
#define	REALCONVERTER_H

#include "UnaryOperator.h"

namespace calculator {

    class RealConverter : public UnaryOperator {
        friend class CommandMap;

    public:

        virtual ~RealConverter();
        std::string isExecutable() const;
        RealConverter* clone() const;

        const Number* apply(const Number* n) const throw (ArithmeticException);

    private:
        RealConverter(const std::string name);
        RealConverter(const RealConverter& orig);
    };
}

#endif	/* REALCONVERTER_H */

